﻿<%@ Page Title="jQuery Treeview in ASP.NET WebForms - WebService" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="WebService.aspx.cs" Inherits="jQuery.Treeview.WebService" %>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <ul id="fileSystemInfos" class="filetree"></ul><br />
    <div id="fileSystemInfosControl">
        <a href="?#">Collapse All</a> | <a href="?#">Expand All</a>
    </div>
</asp:Content>
<asp:Content ID="ScriptContent" runat="server" ContentPlaceHolderID="ScriptContent">
    <script src="Scripts/jquery-treeview-async-0.1.0.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#fileSystemInfos').treeview({
                url: '<% = ResolveClientUrl("~/TreeView/TreeViewService.svc/FileSystemInfos") %>',
                control: '#fileSystemInfosControl'
            })
        });
    </script>
</asp:Content>